package com.acme.task2;

public class Foo {
	private int iterateNumber;
	
	
	public Foo(int iterateNumber) {
		super();
		this.iterateNumber = iterateNumber;
	}


	@Override
	protected void finalize() throws Throwable {
		//TODO: print to console that finalize() was called		
		super.finalize();
		System.out.println("Finalize was called for " + iterateNumber);
	}
}
